import request from '@/api/request'

export function findBrandByPage(start, limit) {
  return request({
    url: `/lejuAdmin/brand/findBrandByPage/${start}/${limit}`
  })
}

export function delBrand(id) {
  return request({
    url: `/lejuAdmin/brand/delBrand/${id}`,
    method: "DELETE"
  })
}

export function switchShowStatus(data) {
  return request({
    url: `/lejuAdmin/brand/switchShowStatus`,
    method: "post",
    data
  })
}

export function updateBrand(data) {
  return request({
    url: `/lejuAdmin/brand/updateBrand`,
    method: "post",
    data
  })
}

export function addBrand(data) {
    return request({
      url: `/lejuAdmin/brand/addBrand`,
      method: "post",
      data
    })
  }
